#ifndef __HEIBAI_USER__H__
#define __HEIBAI_USER__H__

#define USER1	1
#define USER2	(-1)

class CHBRule;

class CHBUser
{
	public:
		void SetRule(CHBRule * pR){m_pBoard = pR;}
		CHBRule * GetRule(){return m_pBoard;}
		virtual void Play() = 0;
		void SetUser(int user){m_nUser = user;}
		int GetUser(){return m_nUser;}
		void GetChess(int &nx, int &ny){nx = x; ny = y;}
	protected:
		void PutChess(int nx, int ny){x = nx; y = ny;}
		void GetSig(int &x, int &y);
	private:
		CHBRule * m_pBoard;
		int m_nUser;
		int x;
		int y;
};

#endif

